package com.qf.efserver.sport.service;

import com.qf.common.core.entity.ActivityRecords;
import com.qf.efserver.sport.param.SportParam;

import java.util.List;

public interface SportService {
    /**
     * 添加运动记录
     * @param sportParam
     */
    void addActivityRecords(SportParam sportParam);

    /**
     * 查询运动记录
     * @param timeId
     * @return
     */
    List<ActivityRecords> selectActivityRecords(Integer timeId);

    /**
     * 查询本周运动次数
     *
     * @param weekId
     * @return
     */
    Integer selectWeekCount(Integer weekId);

    /**
     * 添加活动
     *
     * @param sportParam
     */
    Integer addActivity(SportParam sportParam);

    /**
     * 修改活动参数
     *
     * @param activityRecords
     */
    void updateActivityById(ActivityRecords activityRecords);
}
